package com.lg.java.design;

import org.springframework.util.SerializationUtils;

import java.io.Serializable;

public class Attack2 implements Serializable {
    public static void main(String[] args) throws Exception {
        Attack1 s = Attack1.getInstance();

        byte[] serialize = SerializationUtils.serialize(s);
        Attack1 deserialize = (Attack1)SerializationUtils.deserialize(serialize);


        System.out.println(s);
        System.out.println(deserialize);
        System.out.println(s == deserialize);

    }
}